# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunar-volman
pkgver=4.16.0
pkgrel=0
pkgdesc="Thunar extension for volumes management"
url="https://goodies.xfce.org/projects/thunar-plugins/thunar-volman"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no test suite
depends="thunar"
makedepends="thunar-dev exo-dev libgudev-dev libxfce4ui-dev libnotify-dev
	automake autoconf libtool xfce4-dev-tools"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/xfce-mirror/thunar-volman/archive/thunar-volman-$pkgver.tar.gz"
builddir="$srcdir/thunar-volman-thunar-volman-$pkgver"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f8f888e09028f20f765f78fa3944a42bc1e8a14b0bf74e2961d04faa7c2a85a84110ffc36d3ecf6f2b84329f473fea6f43fc9a7878a9dcc500495d2f1843246b  thunar-volman-4.16.0.tar.gz"
